<?php

namespace App\Models;

use App\Traits\HasDateTimeFormatter;
use App\Traits\HasLoan;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class LoanMortgageTax extends Model
{
    use HasFactory, HasDateTimeFormatter, HasLoan;

    protected $table = "loan_mortgage_tax";

    const TEMPLATE_HEADER = [
        "apply_at" => "申请时间",
        "name" => "称呼",
        "mobile" => "用户联系电话",
        "amount" => "贷款额度",
        "need_home_service" => "是否需要上门",
        "addr" => "详细地址",
        "company_name" => "公司名字",
        "annal_tax" => "年缴税",
        "annal_turnover" => "年营业额",
        "company_age" => "营业执照办理了几年",
        "is_legal_person" => "是否为法人",
    ];

    protected $fillable = [
        "company_name",
        "annal_tax",
        "annal_turnover",
        "company_age",
        "is_legal_person",
    ];

}
